import request from '@/utils/request';
import { other } from './prefix';

const serieManage = {
  // 查询系列列表
  getSerie(params) {
    return request.get(other + '/works_series', { params });
  },
  // 创建系列
  setSerie(params) {
    return request.post(other + '/works_series', params);
  },
  // 更新系列
  updSerie(id, params) {
    return request.post(other + '/works_series/' + id, params);
  },
  // 删除系列
  delSerie(id) {
    return request.delete(other + '/works_series/' + id);
  },
};

export default serieManage;
